package com.tiancikeji.zaoke.app.service.order;

import java.util.Date;
import java.util.List;

import com.tiancikeji.zaoke.app.model.order.Order;

public interface OrderService {

	public Order getOrderById(long orderid, long userid);

	public boolean cancelOrder(Order order);

	public List<Order> getActiveOrdersByUserId(long userId);

	public long geneOrderId(Date now, long id);

	public boolean createOrder(Order order);

	public boolean payOrder(long orderId);

	public boolean recharge(Order order);

	public boolean payOrderFromAli(long orderId);

}
